package com.zsj.mydemos;

import android.app.Activity;
import android.widget.Toast;

public  class BaseActivity extends Activity {

	protected Toast mToast;



	@SuppressWarnings("static-access")
	protected void showToast(String msg) {

		if (mToast == null) {
			mToast = Toast.makeText(this, msg, mToast.LENGTH_SHORT);
		} else {
			mToast.setText(msg);
		}
		mToast.show();
	}

}
